<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>函数参数</title>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<button @click="btnHandle(123,'abc',$event)">单击</button>
			<button @click="btnEventNoArgs">无参数函数</button>
		</div>
		<script>
			let vm=new Vue({
				el:'#app', 
				methods:{
					btnHandle:function(v1,v2,event){
						console.log(v1,v2);
						console.log(event);
						console.log(event.target.innerHTML);
					},
					btnEventNoArgs:function(event){
						console.log(event);
						console.log(event.target.innerHTML);
					}
				}
			});
		</script>
	</body>
</html>
